import server from './server';

export const trading = (data) => { //交易大厅
    return server.get('/fbTrade/trading', {
        params: data
    })
}

export const createOrder = (data) => { //币币交易下单
    return server.post('/exchange/create_order', data)
}

export const tranData = (data) => { //交易记录
    return server.get('/exchange/order_list', {
        params: data
    })
}

export const symbolsData = (data) => { //各币种详情
    return server.post('/exchange/symbols_data', data)
}

export const cancellations = (data) => { //委托撤单
    return server.post('/exchange/cancellations', data)
}

export const symbols = (data) => { //币种信息列表
    return server.get('/exchange/symbols', {
        params: data
    })
}


export const market = (data) => { //市场币种
    return server.get('/fbTrade/market', {
        params: data
    })
}

export const quote = (data) => { //市场币种
    return server.get('/fbTrade/quote', {
        params: data,
        hideloading : true,
    })
}
export const fast_order = (data) => { //快捷下单
    return server.post('/fbTrade/fast_order', data, {
        hideloading : true,
    })
}


export function receive(keywords) {
    return server
        .post("/cashgift/receive", {
            secret_key: keywords,
        })
}
